
from __future__ import division
from math import *

# Calculate distance in an euclidean plane using the pythagorean theorem
def difference(a, b):
    return a[0] - b[0], a[1] - b[1]

# Calculate the angle between two points using the slope
def angle(a, b):
    return acos()

# Split a 2-D vector into its X, y components
def decompose(h, a):
    return  -(cos(a)*h), (sin(a)*h)

